<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
	<title>教学楼管理</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="../../css/public.css" media="all" />
	<link rel="stylesheet" href="../../css/leftnav.css" media="all" />
</head>
<body class="childrenBody">
	<!--学校导航-->
	<div class="layui-col-md2" style="width:200px;margin-right: 20px;">
		<div style="background-color:#eeeeee;line-height: 40px;text-align: center; height: 40px;">学校导航</div>
		<!--学校教学楼导航栏开始-->
		<div style='font-size: small; width:200px; height:500px; LINE-HEIGHT: 20px; overflow-y: auto; overflow-x: hidden;'>
			<div class="nav">
				<ul id="aat" lay-filter="demo"></ul>
			</div>
		</div>
		<!--学校教学楼导航栏结束-->
	</div>
	<div class="layui-col-md7">
		<!--xqr顶部搜索和添加-->
		<div class="top" style="margin: 10px">
			<form class="layui-form " action="" method="post" id="searchFrm" lay-filter="searchFrm">
				<div class="layui-inline">
					<input type="text" class="layui-input searchVal" placeholder="请输入教学楼名称" />
				</div>
				<button type="button" class="layui-btn search_btn" id="search_btn" lay-filter="search_btn"><span class="layui-icon layui-icon-search"></span>搜索</button>
				<button type="button" class="layui-btn layui-btn-normal add_btn" id="add_btn" lay-filter="add_btn"><i class="layui-icon">&#xe608;</i>添加</button>
			</form>
		</div>
		<!-- 显示列表数据-->
		<table id="buildlist" lay-filter="buildlist"></table>
		<!--行工具条-->
		<div id="listRowBar" style="display:none;">
<!--			<a lay-event="edit"><i class="layui-icon">&#xe642;</i>编辑</a>-->
			<a lay-event="edit"><i class="layui-icon">&#xe642;</i></a>
<!--			<a lay-event="del"><i class="layui-icon">&#xe640;</i>删除</a>-->
			<a lay-event="del"><i class="layui-icon">&#xe640;</i></a>
		</div>
	</div>
	<!--数据表格结束-->
	<!-- 编辑弹出层开始-->
	<div style="display:none;padding:10px;" id="editDiv">
		<form action="" method="post" class="layui-form" lay-filter="dataFrm">
			<input type="text" name="tbuildid" id="tbuildid" hidden="hidden">
			<div class="layui-form-item">
				<label class="layui-form-label"><span style="color:red;">*</span>学校</label>
				<div class="layui-input-block">
					<input type="text" name="schoolname" autocomplete="off" class="layui-input" id="schoolnameId" lay-verify="required|len17" disabled="disabled">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label"><span style="color:red;">*</span>教学楼名称</label>
				<div class="layui-input-block">
					<input type="text" name="tbuildname" autocomplete="off" class="layui-input" id="tbuildnameId" lay-verify="required|len17">
				</div>
			</div>
			<div class="layui-form-item">
				<div  style="text-align: center;">
					<button type="button" class="layui-btn" lay-submit id="doSubmitSave" lay-filter="doSubmitSave"><i class="layui-icon">&#xe605;</i>保存</button>
				</div>
			</div>
		</form>
	</div>
	<!-- 编辑弹出层结束-->
	<!-- 添加弹出层开始-->
	<div style="display:none;padding:10px;" id="addDiv">
		<form action="" method="post" class="layui-form" lay-filter="dataFrm">
			<div class="layui-form-item">
				<label class="layui-form-label"><span style="color:red;">*</span>学校</label>
				<div class="layui-input-inline" style="width: 150px;">
					<select name="schoolname" id="schoolname2" lay-filter="schoolname2">
						<option value="">请选择学校</option>
					</select>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label"><span style="color:red;">*</span>教学楼ID</label>
				<div class="layui-input-block">
					<input type="text" name="tbuildid" autocomplete="off" class="layui-input" id="tbuildId2" lay-verify="required|len17">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label"><span style="color:red;">*</span>教学楼名称</label>
				<div class="layui-input-block">
					<input type="text" name="tbuildname" autocomplete="off" class="layui-input" id="tbuildnameId2" lay-verify="required|len17">
				</div>
			</div>
			<div class="layui-form-item">
				<div  style="text-align: center;">
					<button type="button" class="layui-btn" lay-submit id="doSubmitAdd" lay-filter="doSubmitAdd"><i class="layui-icon">&#xe605;</i>新增</button>
				</div>
			</div>
		</form>
	</div>
	<!-- 添加弹出层结束-->

<script type="text/javascript" src="../../layui/layui.js"></script>
<script type="text/javascript" src="schoolBuildMag.js"></script>

</body>
</html>
